package com.itheima.controller;


import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.entity.Result;
import com.itheima.service.ReportService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/report")
public class ReportSerivceController {

    @Reference
    ReportService reportService;

    @RequestMapping("/getSetmeal")
    public Result getSetmeal() {
        List<Map> setmeals = reportService.getSetmeal();
        return Result.success("", setmeals);

    }
}
